This function is used by format-specific graphics import components to read data from the data source. It is implemented by the base graphics importer.
pascal ComponentResult GraphicsImportReadData (
GraphicsImportComponent ci,
void *dataPtr,
unsigned long dataOffset,
unsigned long dataSize);
GraphicsImportReadData communicates with the appropriate data handler to retrieve image data. Typically, only developers of graphics importer components will need to use this function. This function should always be used to retrieve data from the data source, rather than reading it directly.
This function automatically honors any offset and limit set with GraphicsImportSetDataReferenceOffsetAndLimit . For instance, if the offset is set to 100 and ReadData is called to read bytes from dataOffset 5, it will return bytes starting at actual offset 105.
| Previous | Chapter Contents | Chapter Top |